<script>
import commonImport from '../components/commonImport';

export default {
    extends: commonImport,
    methods: {
        downloadTpl() {
            var pars = {
                appId: this.$x.tokenUtil.appId,
                businessType: this.$x.tokenUtil.businessType,
                spId: this.$x.tokenUtil.spId,
            }

            this.$refs.iframe1.src = this.$x.toQueryUrl(this.$x.axios.apiServers.common + '/orginfo/orgFile/skipToken/getTemplate', pars)
        },
        callImport() {
            var pars = {
                belong_group_id: this.$route.query.parentOrgId, //依附组织id（党组织传入）  string requestbody required=false
                fileId: this.files[0].fileId, // 附件id  string  requestbody required=true
                parent_group_id: this.$route.query.parentId, //父级组织id  string  requestbody required = true
            }
            return this.$x.post('/orginfo/orgFile/excelImport', pars)
        },
    },
}
</script>
